<html>
<head><meta charset="utf-8"><title>Seeing renumbered regions (NLL) in MIR dumps? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Seeing.20renumbered.20regions.20(NLL).20in.20MIR.20dumps.3F.html">Seeing renumbered regions (NLL) in MIR dumps?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="228112808"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Seeing%20renumbered%20regions%20%28NLL%29%20in%20MIR%20dumps%3F/near/228112808" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Seeing.20renumbered.20regions.20(NLL).20in.20MIR.20dumps.3F.html#228112808">(Feb 28 2021 at 07:27)</a>:</h4>
<p>Is there a way to see renumbered regions in MIR dumps somehow? I'm using <code>-Zdump-mir=all</code>, which generates a <code>renumber.0.mir</code> file, but it doesn't have regions numbers as far as I can see. For example, instead of this</p>
<div class="codehilite"><pre><span></span><code>        _3 = const 0_i32;
        _2 = &amp;mut _3;
        _1 = &amp;mut (*_2);
</code></pre></div>
<p>I'm looking to see something like</p>
<div class="codehilite"><pre><span></span><code>        _3 = const 0_i32;
        _2 = &amp;&#39;0 mut _3;
        _1 = &amp;&#39;1 mut (*_2);
</code></pre></div>
<p>where numbers are the region numbers.</p>
<p>Is this possible? If not, how do I map a region number in (for example) debug logs to borrow expression in MIR dumps? Just started studying borrow checking so let me know if this doesn't make sense..</p>



<a name="228119501"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Seeing%20renumbered%20regions%20%28NLL%29%20in%20MIR%20dumps%3F/near/228119501" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Matthew Jasper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Seeing.20renumbered.20regions.20(NLL).20in.20MIR.20dumps.3F.html#228119501">(Feb 28 2021 at 09:50)</a>:</h4>
<p><code>-Zverbose</code></p>



<a name="228121756"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Seeing%20renumbered%20regions%20%28NLL%29%20in%20MIR%20dumps%3F/near/228121756" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Seeing.20renumbered.20regions.20(NLL).20in.20MIR.20dumps.3F.html#228121756">(Feb 28 2021 at 10:34)</a>:</h4>
<p>Perfect, thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>